home *** CD-ROM | disk | FTP | other *** search
- # (c) 1998 Simon Windmill, simon@wfmm.com
- # windmill fraser multimedia, inc. http://www.wfmm.com/
- #
- # This incredibly simple script keeps updating the scene.
- # Believe it or not, this serves a purpose: it allows you to see
- # how objects will move when you move a look-at TARGET instead of
- # waiting until anim playback or render time.
- # Assign this script to each object you wish to keep updating.
- def ontimechanged():
- # we need to fool tS into thinking we changed this object, so we set
- # its position with the same position. Uhh. You know what I mean.
- me.Position = (me.Position[0], me.Position[1], me.Position[2])
- # Redraw the scene. It'd be nice if we could just use me.Draw() to
- # only redraw this object, but that just causes horrible flashing.
- doc.Draw()